import request from "@/request/index.js";

// 传统用户名密码登录
export function login(data) {
    return request({
        url: '/auth-service/customsLogin/login',
        method: 'post',
        data: data
    })
}

// 人脸识别登录
export function faceLogin(data) {
    return request({
        url: '/auth-service/customsLogin/faceLogin',
        method: 'post',
        data: data
    })
}

// 用户注册
export function register(data) {
    return request({
        url: '/auth-service/customsLogin/save',
        method: 'post',
        data: data
    })
}

// 人脸注册
export function faceRegister(data) {
    return request({
        url: '/auth-service/customsLogin/faceRegister',
        method: 'post',
        data: data
    })
}